package com.wskeee.ec.components
{
	import com.wskeee.ec.core.EComponent;
	
	import flash.display.Graphics;
	
	public class HSeparate extends EComponent
	{
		public function HSeparate()
		{
			super();
			width = 5;
			height = 20;
		}
		//--------------------------------------------------------------------------
		//
		//  Variables
		//
		//--------------------------------------------------------------------------
		private var drawer:Graphics;
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		//--------------------------------------------------------------------------
		//
		//  private Method
		//
		//--------------------------------------------------------------------------
		override protected function initChildren():void
		{
			super.initChildren();
			drawer = this.graphics;
		}
		//--------------------------------------------------------------------------
		//
		//  Method
		//
		//--------------------------------------------------------------------------
		//========================= updateDisplayList ===========
		override protected function updateDisplayList():void
		{
			super.updateDisplayList();
			var startPos:Number = (width+0.2)/2;
			drawer.clear();
			drawer.lineStyle(0.1,(getStyle("borderColor") as uint),0.5);
			drawer.moveTo(width+.1,0);
			drawer.lineTo(width+.1,height);
			drawer.lineStyle(0.1,getStyle("borderColor") as uint);
			drawer.moveTo(width,0);
			drawer.lineTo(width,height);
		}
		//========================= end =========================
	}
}